import Mock from 'mockjs'

const Random = Mock.Random

const disabled = function() {
    let list = []
    for (let i = 0; i < 20; i++) {
        let item = {
            id: i,
            name: Random.cname(),
            phone: 231545645112,
            position: '工程师',
            startDate: Random.date(),
            endDate: Random.date(),
            email: '64545665@qq.com',
            remark: '这是一段乱七八糟的话'
        }
        list.push(item)
    }

    return list
}

const role = function() {
    let list = []
    for (let i = 0; i < 20; i++) {
        let item = {
            id: i,
            name: Random.cname(),
            phone: 231545645112,
            position: '工程师',
            startDate: Random.date(),
            email: '64545665@qq.com',
            remark: '这是一段乱七八糟的话'
        }
        list.push(item)
    }

    return list
}

export default [
    {
        url: '/getDisabled',
        method: 'get',
        data: disabled
    },
    {
        url: '/getRole',
        method: 'get',
        data: role
    }
]
